package org.tgit.gateway.domain;

public class NetStatusInfo {
	private static final long serialVersionUID = 1L;
	// 当前网络状态是通的
	public static final int STATUS_OK = 0;
	// 当前网络状态是断的
	public static final int STATUS_FAILED = 1;

	// 发送方ID
	private String sender;
	// 接收方ID
	private String receiver;
	// 接收方IP地址
	private String ipAddress;
	// 接收方端口
	private int port;
	// 当前状态
	private int status = STATUS_OK;
	// 网络断连次数
	private int failedTimes;
	// 发送方的host地址
	private String targetHost;

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getFailedTimes() {
		return failedTimes;
	}

	public void setFailedTimes(int failedTimes) {
		this.failedTimes = failedTimes;
	}

	public String getTargetHost() {
		return targetHost;
	}

	public void setTargetHost(String targetHost) {
		this.targetHost = targetHost;
	}
}
